# $Id: PKGBUILD 65994 2012-02-22 14:14:48Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Francois Charette <firmicus@gmx.net>

pkgname=perl-xml-sax-expat
pkgver=0.40
pkgrel=4
pkgdesc="SAX2 Driver for Expat (XML::Parser) "
arch=('any')
url="http://search.cpan.org/dist/XML-SAX-Expat"
license=('GPL' 'PerlArtistic')
depends=('perl-xml-namespacesupport' 'perlxml' 'perl-xml-sax')
install=perl-xml-sax-expat.install
options=('!emptydirs')
source=(http://www.cpan.org/authors/id/B/BJ/BJOERN/XML-SAX-Expat-$pkgver.tar.gz)
md5sums=('ca58d1e26c437b31c52456b4b4ae5c4a')

build() {
  cd  $srcdir/XML-SAX-Expat-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor 
  make 
}
package(){
  cd  $srcdir/XML-SAX-Expat-$pkgver
  make pure_install doc_install DESTDIR=$pkgdir 
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}
